<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import {${declarationName}Component} from './${declarationNameFirstLetterLower}.component';
import {${declarationName}IndexComponent} from './views/${declarationNameFirstLetterLower}-index/${declarationNameFirstLetterLower}-index.component';

export const ${declarationNameFirstLetterLower}Routes = [{
  path: '',
  component: ${declarationName}Component,
  children: [
    {path: '', redirectTo: '${declarationNameFirstLetterLower}Index', pathMatch: 'full'},
    {path: '${declarationNameFirstLetterLower}Index', component: ${declarationName}IndexComponent}
  ]
}];
